package com.mall.common.constants;

/**
 * @author 王亚齐
 * @description: Jwt常量
 */
public class JwtConstants {

    /**
     * 用户ID字段
     */
    public static final String DETAILS_USER_ID = "user_id";

    /**
     * 用户名字段
     */
    public static final String DETAILS_USERNAME = "username";

    /**
     * 用户标识
     */
    public static final String USER_KEY = "user_key";

    /**
     * 令牌秘钥
     */
    public final static String SECRET = "abcdefghijklmnopqrstuvwxyz";

    /**
     * 最大失败尝试次数
     */
    public final static Integer MAX_FAILED_ATTEMPTS = 3;

    /**
     * 尝试次数
     */
    public final static String NUMBER_OF_ATTEMPTS = "numberOfAttempts";


}
